package com.zby.filter.util.core.util;

import org.apache.commons.lang3.time.FastDateFormat;

import java.util.Date;

/**
 * Created By zby on 11:10 2019/2/13
 * 操作时间的工具类
 */

public class DateUtil {

    public static FastDateFormat ISO_SIMPLE_FORMATE = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");

    public static String simpleFormate(Date date) {
        return null == date ? null : ISO_SIMPLE_FORMATE.format(date);
    }
}
